package pl.matt.media.manager.impl;


import java.io.IOException;

import pl.matt.media.manager.ImageManager;
import pl.matt.media.model.ImageType;
import pl.matt.model.Rectangle;

/**
 * @author mateusz
 * 
 */

public abstract class AbstractImageManager implements ImageManager {

	@Override
	public boolean cropImage(String sourceImagePath, String destinationImagePath, Rectangle rectangle, ImageType imageType)
			throws IOException {
		return cropImage(sourceImagePath, destinationImagePath, 
				rectangle.getX(), 
				rectangle.getY(), 
				rectangle.getWidth(), rectangle.getHeight(), imageType);
	}

}
